package com.gexiaobao.pigeon.app.model.bean

import com.bin.david.form.annotation.SmartColumn
import com.bin.david.form.annotation.SmartTable

/**
 * @Author      : hxw
 * @Date        :2023/2/4 11:16
 * @Describe    :
 */
class DailyScanResponse(

    var list: ArrayList<DataList> = arrayListOf()

) : java.io.Serializable {

    /**
     * 数据是否为空
     */
    fun isEmpty() = list == null || (list as List<*>).isEmpty()

    @SmartTable(name = "每日扫描")
    class DataList(

        @SmartColumn(id = 0, name = "序号", fixed = true)
        var serialNumber: Int = 0,

        @SmartColumn(id = 1, name = "足环号", fixed = true)
        var ringId: String = "",

        @SmartColumn(id = 6, name = "寄养人")
        var fosterName: String = "",

        @SmartColumn(id = 5, name = "性别")
        var sexStr: String = "",
        var sex: Int = 0,

//        @SmartColumn(id = 3, name = "羽色")
//        var featherColorStr: String = "",
        @SmartColumn(id = 3, name = "羽色")
        var featherColor: String = "",

        @SmartColumn(id = 4, name = "眼沙")
        var eyePatternStr: String = "",
        var eyePattern: Int = 0,

        var lon: String = "",
        var lat: String = "",

        @SmartColumn(id = 2, name = "扫描时间")
        var scanTime: String = "",

        ) : java.io.Serializable
}